package com.itheima.client;

import com.itheima.pojo.Result;
import com.itheima.pojo.ResultPageBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "item-service")
public interface ItemClient {
    @GetMapping("/item/getTotal")
    public Integer getTotal();
    @GetMapping("/item/findByPage/{pageSize}/{currentPage}")
    public Result findByPage(@PathVariable("pageSize")int pageSize, @PathVariable("currentPage") int currentPage);

}
